<jsp:useBean id="sessiondata" class="bibbletex.models.SessionData"
	scope="session" />

<%@ page
	import="bibbletex.models.*,java.util.UUID,java.util.List"
	import="bibbletex.views.CollaborationView,bibbletex.controllers.CollaborationController" %>	

<%!
	String page_title = new String("Search for references");
	String onloadjsfunction = "";
	boolean show_title = true;
%>
<%@ include file="/header.jsp"%>
<script type="text/javascript" src="/js/ajax.js"></script>

<form name="searchform" action="searchresults.jsp" method="post"  onsubmit="xmlhttpPost('searchresults.jsp', 'searchform','searchresults', '<img src=\'/img/wait.gif\'>',true); return false;">
<label for="searchbox">Search: </label>
<input type="text" name="searchterm" placeholder="Search terms" />
<input type="submit" name="search" value="Search" onclick="document.getElementById('resultsoffset').value = 0; "/>
<input type="submit" name="next" value="Next 10" onclick="document.getElementById('resultsoffset').value = (document.getElementById('resultsoffset').value * 1) + 10;"/>
<input type="hidden" name="resultsoffset" id="resultsoffset" value="0" />
</form>
<div id="searchresults">&nbsp;</div>
<%@ include file="/footer.jsp"%>
